package com.cpdmali.courrier.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.cpdmali.courrier.dao.DomainsDao;
import com.cpdmali.courrier.entities.Domains;
import com.cpdmali.courrier.service.DomainsService;

@Service
public class DomainsServiceImpl implements DomainsService {
	
	@Autowired
	private DomainsDao domainsDao;
	
	
	public void persist(Domains transientInstance) {
		domainsDao.persist(transientInstance);
	}

	public void remove(Domains persistentInstance) {
		domainsDao.remove(persistentInstance);
	}

	public Domains merge(Domains detachedInstance) {
		return domainsDao.merge(detachedInstance);
	}

	public Domains findById(String id) {
		return domainsDao.findById(id);
	}

	public List<Domains> findAll() {
		return domainsDao.findAll();
	}

	public List<Domains> findAllLimit(int limit) {
		return domainsDao.findAllLimit(limit);
	}

}
